<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="SingleAccount.title"/></title>
    <meta name="heading" content="<fmt:message key='SingleAccount.heading'/>"/>
    <meta name="menu" content="YAReportMenu"/>
</script>
</head>
<div id="query">
	<s:form id="queryForm" action="singleAccountReport" method="get">
		<s:textfield key="accountId" required="true" cssClass="text medium"/>
		<li class="buttonBar bottom">
			<s:submit cssClass="button" theme="simple"/>
		</li>
	</s:form>
</div>

<display:table name="account" requestURI="" class="table" id="account" export="true" pagesize="25">
    <display:column property="id" media="csv excel xml pdf" titleKey="account.id"/>
    <display:column property="account" sortable="true" titleKey="account.account"/>
    <display:column property="name" sortable="true" titleKey="account.name"/>
    <display:column property="staff.staffId" sortable="true" titleKey="staff.staffId"/>
    <display:column property="staff.name" sortable="true" titleKey="staff.name"/>
    <display:column property="openDay" sortable="true" titleKey="account.openDay"/>
	<display:column property="transfer" sortable="true" titleKey="account.transfer"/>
	<display:column property="stockShNumber" sortable="true" titleKey="account.stockShNumber"/>
	<display:column property="stockShOpenDay" sortable="true" titleKey="account.stockShOpenDay"/>
	<display:column property="stockShNumberB" sortable="true" titleKey="account.stockShNumberB"/>
	<display:column property="stockShOpenDayB" sortable="true" titleKey="account.stockShOpenDayB"/>
	<display:column property="stockSzNumber" sortable="true" titleKey="account.stockSzNumber"/>
	<display:column property="stockSzOpenDay" sortable="true" titleKey="account.stockSzOpenDay"/>
	<display:column property="stockSzNumberB" sortable="true" titleKey="account.stockSzNumberB"/>
	<display:column property="stockSzOpenDayB" sortable="true" titleKey="account.stockSzOpenDayB"/>
    <display:column property="subTime" sortable="true" titleKey="account.subTime"/>
    <display:column property="remark" sortable="true" titleKey="account.remark"/>
    <display:column property="lastModifyTime" sortable="true" titleKey="account.lastModifyTime"/>

    <display:setProperty name="paging.banner.item_name"><fmt:message key="accountList.accounts"/></display:setProperty>
    <display:setProperty name="paging.banner.items_name"><fmt:message key="accountList.accounts"/></display:setProperty>

    <display:setProperty name="export.excel.filename"><fmt:message key="accountList.title"/>.xls</display:setProperty>
    <display:setProperty name="export.csv.filename"><fmt:message key="accountList.title"/>.csv</display:setProperty>
    <display:setProperty name="export.pdf.filename"><fmt:message key="accountList.title"/>.pdf</display:setProperty>
</display:table>

<display:table name="account.specials" requestURI="" class="table" id="account.specials" export="true" pagesize="25">
	<display:column property="id" media="csv excel xml pdf" titleKey="accountSpecial.id"/>
	<display:column property="type" group="1" sortable="true" titleKey="accountSpecial.type"/>
	<display:column property="remark"  sortable="true" titleKey="accountSpecial.remark"/>
	<display:column property="subTime" sortable="true" titleKey="accountSpecial.subTime"/>
	
	<display:setProperty name="paging.banner.item_name"><fmt:message key="accountSpecial"/></display:setProperty>
    <display:setProperty name="paging.banner.items_name"><fmt:message key="accountSpecial"/></display:setProperty>

    <display:setProperty name="export.excel.filename"><fmt:message key="accountSpecial.title"/>.xls</display:setProperty>
    <display:setProperty name="export.csv.filename"><fmt:message key="accountSpecial.title"/>.csv</display:setProperty>
    <display:setProperty name="export.pdf.filename"><fmt:message key="accountSpecial.title"/>.pdf</display:setProperty>
</display:table>

<display:table name="account.dayMoneys" defaultsort="1" defaultorder="descending" requestURI="" class="table" id="account.dayMoneys" export="true" pagesize="25">
	<display:column property="id" media="csv excel xml pdf" titleKey="accountDayMoney.id"/>
	<display:column property="day" group="1" sortable="true" titleKey="accountDayMoney.day"/>
	<display:column property="type" group="2" sortable="true" titleKey="accountDayMoney.type"/>
	<display:column property="money" sortable="true" titleKey="accountDayMoney.money"/>
	
	
	<display:setProperty name="paging.banner.item_name"><fmt:message key="accountDayMoney"/></display:setProperty>
    <display:setProperty name="paging.banner.items_name"><fmt:message key="accountDayMoney"/></display:setProperty>

    <display:setProperty name="export.excel.filename"><fmt:message key="accountDayMoney.title"/>.xls</display:setProperty>
    <display:setProperty name="export.csv.filename"><fmt:message key="accountDayMoney.title"/>.csv</display:setProperty>
    <display:setProperty name="export.pdf.filename"><fmt:message key="accountDayMoney.title"/>.pdf</display:setProperty>
</display:table>

<display:table name="account.dayFunds" defaultsort="1" defaultorder="descending" requestURI="" class="table" id="account.dayFunds" export="true" pagesize="25">
	<display:column property="id" media="csv excel xml pdf" titleKey="accountDayFund.id"/>
	<display:column property="day" group="1" sortable="true" titleKey="accountDayFund.day" />
	<display:column property="fundId" sortable="true" titleKey="accountDayFund.fundId"/>
	<display:column property="fund" sortable="true"  titleKey="accountDayFund.fund"/>
	<display:column property="worth" sortable="true" titleKey="accountDayFund.worth" />
	
	
	<display:setProperty name="paging.banner.item_name"><fmt:message key="accountDayFund"/></display:setProperty>
    <display:setProperty name="paging.banner.items_name"><fmt:message key="accountDayFund"/></display:setProperty>

    <display:setProperty name="export.excel.filename"><fmt:message key="accountDayFund.title"/>.xls</display:setProperty>
    <display:setProperty name="export.csv.filename"><fmt:message key="accountDayFund.title"/>.csv</display:setProperty>
    <display:setProperty name="export.pdf.filename"><fmt:message key="accountDayFund.title"/>.pdf</display:setProperty>
    
</display:table>

<display:table name="account.dayStocks" defaultsort="1" defaultorder="descending" requestURI="" class="table" id="account.dayStocks" export="true" pagesize="25">
	<display:column property="id" media="csv excel xml pdf" titleKey="accountDayStock.id"/>
	<display:column property="day" group="1" sortable="true" titleKey="accountDayMoney.day"/>
	<display:column property="type" group="2" sortable="true" titleKey="accountDayStock.type"/>
	<display:column property="market" group="3" sortable="true" titleKey="accountDayStock.market"/>
	<display:column property="code" sortable="true" titleKey="accountDayStock.code"/>
	<display:column property="codeName" sortable="true" titleKey="accountDayStock.codeName"/>
	<display:column property="worth"  sortable="true" titleKey="accountDayFund.worth"/>
	
	
	<display:setProperty name="paging.banner.item_name"><fmt:message key="accountDayStock"/></display:setProperty>
    <display:setProperty name="paging.banner.items_name"><fmt:message key="accountDayStock"/></display:setProperty>

    <display:setProperty name="export.excel.filename"><fmt:message key="accountDayStock.title"/>.xls</display:setProperty>
    <display:setProperty name="export.csv.filename"><fmt:message key="accountDayStock.title"/>.csv</display:setProperty>
    <display:setProperty name="export.pdf.filename"><fmt:message key="accountDayStock.title"/>.pdf</display:setProperty>
    
</display:table>

<display:table name="account.monthProfits" defaultsort="1" defaultorder="descending" requestURI="" class="table" id="account.monthProfits" export="true" pagesize="25">
	<display:column property="id" media="csv excel xml pdf" titleKey="accountMonthProfit.id"/>
	<display:column property="month" group="1" sortable="true" titleKey="accountMonthProfit.month"/>
	<display:column property="deal" sortable="true" titleKey="accountMonthProfit.deal"/>
	<display:column property="profit" sortable="true" titleKey="accountMonthProfit.profit"/>
	<display:column property="pureProfit" sortable="true" titleKey="accountMonthProfit.pureProfit"/>
	<display:column property="profitRate" sortable="true" titleKey="accountMonthProfit.profitRate"/>
	<display:column property="pureProfitRate" sortable="true" titleKey="accountMonthProfit.pureProfitRate"/>
	
	
	<display:setProperty name="paging.banner.item_name"><fmt:message key="accountMonthProfit"/></display:setProperty>
    <display:setProperty name="paging.banner.items_name"><fmt:message key="accountMonthProfit"/></display:setProperty>

    <display:setProperty name="export.excel.filename"><fmt:message key="accountMonthProfit.title"/>.xls</display:setProperty>
    <display:setProperty name="export.csv.filename"><fmt:message key="accountMonthProfit.title"/>.csv</display:setProperty>
    <display:setProperty name="export.pdf.filename"><fmt:message key="accountMonthProfit.title"/>.pdf</display:setProperty>
    
</display:table>

<display:table name="account.monthAsserts" defaultsort="1" defaultorder="descending" requestURI="" class="table" id="account.monthAsserts" export="true" pagesize="25">
	<display:column property="id" media="csv excel xml pdf" titleKey="accountMonthAssert.id"/>
	<display:column property="month" group="1" sortable="true" titleKey="accountMonthProfit.month"/>
	<display:column property="dailyAssert" sortable="true" titleKey="accountMonthAssert.dailyAssert"/>
	<display:column property="dailyFund" sortable="true" titleKey="accountMonthAssert.dailyFund"/>
	<display:column property="dailyMarketAssert" sortable="true" titleKey="accountMonthAssert.dailyMarketAssert"/>
	<display:column property="dailyPaper" sortable="true" titleKey="accountMonthAssert.dailyPaper"/>
	<display:column property="dailyMoney" sortable="true" titleKey="accountMonthAssert.dailyMoney"/>
	
	
	<display:setProperty name="paging.banner.item_name"><fmt:message key="accountMonthAssert"/></display:setProperty>
    <display:setProperty name="paging.banner.items_name"><fmt:message key="accountMonthAssert"/></display:setProperty>

    <display:setProperty name="export.excel.filename"><fmt:message key="accountMonthAssert.title"/>.xls</display:setProperty>
    <display:setProperty name="export.csv.filename"><fmt:message key="accountMonthAssert.title"/>.csv</display:setProperty>
    <display:setProperty name="export.pdf.filename"><fmt:message key="accountMonthAssert.title"/>.pdf</display:setProperty>
    
</display:table>

<display:table name="account.monthRewards" defaultsort="1" defaultorder="descending" requestURI="" class="table" id="account.monthRewards" export="true" pagesize="25">

	<display:column property="id" media="csv excel xml pdf" titleKey="accountMonthReward.id"/>
	<display:column property="month" group="1" sortable="true" titleKey="accountMonthReward.month"/>
	<display:column property="rewardType" group="1" sortable="true" titleKey="accountMonthReward.rewardType"/>
	<display:column property="reward" sortable="true" titleKey="accountMonthReward.reward"/>
	
	
	<display:setProperty name="paging.banner.item_name"><fmt:message key="accountMonthReward"/></display:setProperty>
    <display:setProperty name="paging.banner.items_name"><fmt:message key="accountMonthReward"/></display:setProperty>

    <display:setProperty name="export.excel.filename"><fmt:message key="accountMonthReward.title"/>.xls</display:setProperty>
    <display:setProperty name="export.csv.filename"><fmt:message key="accountMonthReward.title"/>.csv</display:setProperty>
    <display:setProperty name="export.pdf.filename"><fmt:message key="accountMonthReward.title"/>.pdf</display:setProperty>
    
</display:table>

<display:table name="account.subAccounts" defaultsort="1" defaultorder="descending" requestURI="" class="table" id="account.subAccounts" export="true" pagesize="25">

	<display:column property="id" media="csv excel xml pdf" titleKey="subAccount.id"/>
	<display:column property="type" group="1" sortable="true" titleKey="subAccount.type"/>
	<display:column property="subAccount" group="1" sortable="true" titleKey="subAccount.subAccount"/>
	<display:column property="openDay" sortable="true" titleKey="subAccount.openDay"/>
	<display:column property="remark" sortable="true" titleKey="subAccount.remark"/>
	
	
	<display:setProperty name="paging.banner.item_name"><fmt:message key="subAccount"/></display:setProperty>
    <display:setProperty name="paging.banner.items_name"><fmt:message key="subAccount"/></display:setProperty>

    <display:setProperty name="export.excel.filename"><fmt:message key="subAccount.title"/>.xls</display:setProperty>
    <display:setProperty name="export.csv.filename"><fmt:message key="subAccount.title"/>.csv</display:setProperty>
    <display:setProperty name="export.pdf.filename"><fmt:message key="subAccount.title"/>.pdf</display:setProperty>
    
</display:table>

<script type="text/javascript">
	 highlightTableRows("account");
 	 highlightTableRows("accountSpecial");
  	 highlightTableRows("accountDayMoney");
  	 highlightTableRows("accountDayFund");
     highlightTableRows("accountDayStock");
     highlightTableRows("accountMonthProfit");
     highlightTableRows("accountMonthAssert");
     highlightTableRows("accountMonthReward");
</script>